package wsi.input.degree;

import org.rygh.semantic.sparql.SparQL;

import wsi.function.DirManager;
import wsi.function.RuntimeInfo;

public class QueryDegreeSelector extends DegreeSelector {

	public QueryDegreeSelector(DirManager dir) {
		super(dir);
	}

	@Override
	protected void compute() {
		RuntimeInfo runtime = function.getRuntimeInfo();

		SparQL query = runtime.getQuery();

		if (query == null) {
			log.info("[warn] missing input query for " + function.getFullName());
			return;
		}

		computeOnline(query);
	}
}
